package cn.ronghui.project.infrastructure.dao.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

// 宿舍楼信息
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Building {
    /** ID */
    private Long id;
    /** 楼栋ID */
    private Integer buildingId;
    /** 楼栋名称 */
    private String buildingName;
    /** 楼栋地址 */
    private String address;
    /** 楼栋总房间数（可由room表统计，此处保留用于快速查询） */
    private Integer totalRooms;
    /** 创建时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /** 更新时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
